<template>
  <div>
      <h1>{message{}} </h1>
      <h3>计算属性获取到{{haid}} </h3>
      <h3>函数获取到{{gei()}} </h3>
  </div>
</template>

<script>
export default {
data() {
    return {
        message: 'hello world'
    }
},
methods: {
    gei() {
        console.log(1);
        return this.message.split('').reverse().join('')
    }
},
computed: {
    haid() {
        console.log(2);
        return this.message.split('').reverse().join('')
    }
},
}
</script>

<style>

</style>